function [res, timeElapsed, resAIO] = RMSC_single_dataset(Ks, Y, nRepeat)
[nSmp, ~, nKernel] = size(Ks);
nCluster = length(unique(Y));
if ~exist('nRepeat', 'var')
    nRepeat = 1;
end

tic;
resAIO = [];
for i1 = 1:nRepeat
    [label_rmsc, H_normalized] = RMSC_config_auto(Ks, nCluster);
    res_rmsc = ClusteringMeasure(Y, label_rmsc);
    resAIO = [resAIO; res_rmsc];
end
res = mean(resAIO, 1);
timeElapsed = toc;